﻿using DA;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BL
{
    public class KhachHangBL
    {
        KhachHangDA khachHangDA;

        public KhachHangBL()
        {
            khachHangDA = new KhachHangDA();
        }

        public DataSet layDanhSachKhachHang()
        {
            return khachHangDA.layDanhSachKhachHang();
        }

        public DataSet timKiemKhachHang(int loai, String strTimKiem)
        {
            return khachHangDA.timKiemKhachHang(loai, strTimKiem);
        }

        public void updateKhachHang(DataTable dt)
        {
            khachHangDA.danhSachKhachHangAdapter.Update(dt);
        }
    }
}
